package com.ehotting.edsta.circuitDesign.generator.domain;

import java.io.Serializable;

/**
 * 
 * @TableName es_circuit_pcb
 */
public class EsCircuitPcb implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * pcb模板名称
     */
    private String name;

    /**
     * 数据处理电路名称
     */
    private String conName;

    /**
     * 电源电路名称
     */
    private String powName;

    /**
     * 数据采集电路名称组
     */
    private String senNames;

    /**
     * pcb模板url
     */
    private String url;

    /**
     * 图
     */
    private String image;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * pcb模板名称
     */
    public String getName() {
        return name;
    }

    /**
     * pcb模板名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 数据处理电路名称
     */
    public String getConName() {
        return conName;
    }

    /**
     * 数据处理电路名称
     */
    public void setConName(String conName) {
        this.conName = conName;
    }

    /**
     * 电源电路名称
     */
    public String getPowName() {
        return powName;
    }

    /**
     * 电源电路名称
     */
    public void setPowName(String powName) {
        this.powName = powName;
    }

    /**
     * 数据采集电路名称组
     */
    public String getSenNames() {
        return senNames;
    }

    /**
     * 数据采集电路名称组
     */
    public void setSenNames(String senNames) {
        this.senNames = senNames;
    }

    /**
     * pcb模板url
     */
    public String getUrl() {
        return url;
    }

    /**
     * pcb模板url
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 图
     */
    public String getImage() {
        return image;
    }

    /**
     * 图
     */
    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EsCircuitPcb other = (EsCircuitPcb) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getConName() == null ? other.getConName() == null : this.getConName().equals(other.getConName()))
            && (this.getPowName() == null ? other.getPowName() == null : this.getPowName().equals(other.getPowName()))
            && (this.getSenNames() == null ? other.getSenNames() == null : this.getSenNames().equals(other.getSenNames()))
            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
            && (this.getImage() == null ? other.getImage() == null : this.getImage().equals(other.getImage()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getConName() == null) ? 0 : getConName().hashCode());
        result = prime * result + ((getPowName() == null) ? 0 : getPowName().hashCode());
        result = prime * result + ((getSenNames() == null) ? 0 : getSenNames().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getImage() == null) ? 0 : getImage().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", conName=").append(conName);
        sb.append(", powName=").append(powName);
        sb.append(", senNames=").append(senNames);
        sb.append(", url=").append(url);
        sb.append(", image=").append(image);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}